<template>
  <el-dialog title="学生信息" :close-on-click-modal="false"
             :visible.sync="isShow" width="25%" :show-close="false">

    <el-form ref="form" :model="student" label-position="left" label-width="60px">
      <el-form-item label="用户名">
        <el-input v-model="student.userName" placeholder="请输入用户名" disabled></el-input>
      </el-form-item>
      <el-form-item label="姓名">
        <el-input v-model="student.name" placeholder="请输入姓名" disabled></el-input>
      </el-form-item>
      <el-form-item label="手机">
        <el-input v-model="student.phoneNum" placeholder="请输入手机" disabled></el-input>
      </el-form-item>
      <el-form-item label="邮箱">
        <el-input v-model="student.email" placeholder="请输入邮箱" disabled></el-input>
      </el-form-item>
    </el-form>

    <span slot="footer" class="dialog-footer">
      <el-button type="primary" @click="confirm">确 定</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  props: {
    isShow: {
      type: Boolean,
      default: false
    },
    student: {
      type: Object,
      default: {}
    },
  },
  methods: {
    confirm() {
      this.$emit('confirm')
    }
  }
}
</script>

<style scoped>

</style>
